import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/finance/otherIn/list',
    method: 'post',
    data: data
  })
}
export function listForReturn(data) {
  return request({
    url: '/sale/order/listForFinance',
    method: 'post',
    data: data
  })
}
export function listPurchase(data) {
  return request({
    url: '/purchase/order/listForFinance',
    method: 'post',
    data: data
  })
}
export function listOutsource(data) {
  return request({
    url: '/outsource/order/listForFinance',
    method: 'post',
    data: data
  })
}
export function addOrUpdate(data) {
  return request({
    url: '/finance/otherIn/addOrEdit',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/finance/otherIn/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function getInfo(data) {
  return request({
    url: '/finance/otherIn/' + data,
    method: 'get'
  })
}
